import request from '@/utils/request'

// 查询员工入职列表
export function listInduction(query) {
  return request({
    url: '/hrm/staff/induction/list',
    method: 'get',
    params: query
  })
}

// 查询员工入职列表
export function listInductionAll(query) {
    return request({
        url: '/hrm/staff/induction/listAll',
        method: 'get',
        params: query
    })
}

// 查询员工入职详细
export function getInduction(id) {
  return request({
    url: '/hrm/staff/induction/' + id,
    method: 'get'
  })
}

// 新增员工入职
export function addInduction(data) {
  return request({
    url: '/hrm/staff/induction',
    method: 'post',
    data: data
  })
}

// 修改员工入职
export function updateInduction(data) {
  return request({
    url: '/hrm/staff/induction',
    method: 'put',
    data: data
  })
}

// 删除员工入职
export function delInduction(id) {
  return request({
    url: '/hrm/staff/induction/' + id,
    method: 'delete'
  })
}


// 创建系统用户
export function createUser(id){
    return request({
        url: '/hrm/staff/induction/createUser/' + id,
        method: 'get'
    })
}


// 查询用户个人信息
export function getUserProfile() {
  return request({
    url: '/system/user/profile',
    method: 'get'
  })
}

// 修改用户个人信息
export function updateUserProfile(data) {
  return request({
    url: '/system/user/profile',
    method: 'put',
    data: data
  })
}

//   getStaffLisst               /hrm/staff/induction/bug/list
export function getStaffLisst(query) {
    return request({
        url: '/hrm/staff/induction/bug/list',
        method: 'get',
        params: query
    })
}




































































































































